<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	</h:head>

	<h:body>
		<ui:composition template="/XHTML/CommonColumnsContent.xhtml">
			<ui:define name="header">
				<ui:include src="/WEB-INF/facelets/header.jspx" />
			</ui:define>
			<br />
			<br />

			<ui:define name="body">
				<f:view>
					<p:ajaxStatus onstart="statusDialog.show();"
						onsuccess="statusDialog.hide();" />
					<p:dialog modal="true" widgetVar="statusDialog" header="Loading"
						draggable="false" closable="false">
						<p:graphicImage
							value="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.request.contextPath}/images/ajaxloadingbar.gif" />
					</p:dialog>

					<h:form>
						<div align="center">
							<h:link id="cmdBack" outcome="goInitialMenu" value="Back"
								style="color:blue;" />
						</div>
						<br />
						<p:panel id="msgProjectEmpresaTitle" header="Empresa">
							<p:messages id="msg" showDetail="true" />
							<p:growl id="men" />
							<h:panelGrid columns="2" id="panel">
								<h:outputText id="msgCodigoEmp" value="Codigo: " />
								<p:inputText id="txtCodigoEmp"
									binding="#{empresaView.txtCodigoEmp}">
									<p:ajax update="panel,msg,panelBotones"
										listener="#{empresaView.listener_txtId}" />
								</p:inputText>
<h:outputText id="msgNombre" value=" Nombre: " />
								<p:inputText id="txtNombre" disabled="true"
									binding="#{empresaView.txtNombre}" />
									<h:outputText id="msgDireccion" value=" Direccion: " />
								<p:inputText id="txtDireccion" disabled="true"
									binding="#{empresaView.txtDireccion}" />
								<h:outputText id="msgCelular" value=" Celular: " />
								<p:inputText id="txtCelular" disabled="true"
									binding="#{empresaView.txtCelular}" />
								<h:outputText id="msgCorreo" value=" Correo: " />
								<p:inputText id="txtCorreo" disabled="true"
									binding="#{empresaView.txtCorreo}" />
								
								<h:outputText id="msgEstado" value=" Estado: " />
								<p:selectOneMenu value="#{empresaView.cmdEstado}">
									<f:selectItem itemLabel="Seleccionar" itemValue="" />
									<f:selectItem itemLabel="ACTIVO" itemValue="1" />
									<f:selectItem itemLabel="INACTIVO" itemValue="2" />
								</p:selectOneMenu>

								


							</h:panelGrid>

							<h:panelGrid id="panelBotones" columns="4">

								<p:commandButton id="btnSave" disabled="true" value="Guardar"
									action="#{empresaView.action_save}"
									update="msg,panel,panelBotones"
									binding="#{empresaView.btnSave}" />
								<p:commandButton id="btnModify" disabled="true" value="Modificar"
									action="#{empresaView.action_modify}"
									update="msg,panel,panelBotones"
									binding="#{empresaView.btnModify}" />
								<p:commandButton id="btnDelete" disabled="true" value="Eliminar"
									action="#{empresaView.action_delete}"
									update="msg,panel,panelBotones"
									binding="#{empresaView.btnDelete}"
									onclick="return confirm('Do you really want to delete this Entry?')" />
								<p:commandButton id="btnClear" disabled="false" value="Limpiar"
									action="#{empresaView.action_clear}"
									update="msg,panel,panelBotones"
									binding="#{empresaView.btnClear}" />

							</h:panelGrid>

						</p:panel>

					</h:form>
				</f:view>
			</ui:define>

			<ui:define name="footer">
				<ui:include src="/WEB-INF/facelets/footer.jspx" />
			</ui:define>
		</ui:composition>
	</h:body>

</html>
